//
//  EventsData.m
//  __PRODUCTNAME__
//
//  Created by dllo on 16/09/09
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "EventsData.h"
#import "EventsProjlist.h"

@implementation EventsData

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"projlist"]) {
        NSMutableArray<EventsProjlist *> *arr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            EventsProjlist *projlist = [EventsProjlist modelWithDic:dic];
            [arr addObject:projlist];
        }
        _projlist = arr;
    }
}



@end
